package com.interagriculture.mapper;

import com.interagriculture.entity.Carousel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface CarouselMapper {
    /**
     * 据id获取轮播图
     * @param id
     * @return
     */
    List<Carousel> getImageById(Integer id);

    /**
     * 修改轮播图
     * @param id
     * @param image
     */
    @Update("update carousel set image = #{image} where id = #{id}")
    void updateImage(Integer id,String image);
}
